function newVector = shipCurve(currentVector)

%parameters definition
velocity = 10;

persistent currentX; 


if(norm(currentVector) == 0) %means that this is the first turn
    currentX = 1;
else
    currentX = currentX + 1;
end

newVectorY = (currentX^4)/(510^4)*velocity-currentVector(2)+normrnd(0,velocity/100);
newVectorX = velocity^2-newVectorY^2;
if newVectorX < 0
    newVector = [0, velocity];
else
    newVector = [sqrt(newVectorX), newVectorY];
end

end